import marked from "marked";

export function marked2Html(markedData){
  var htmlData=marked(markedData)
  htmlData=htmlData.replaceAll("成功","<font color=green><strong>成功</strong></font>")
  htmlData=htmlData.replaceAll("失败","<font color=red><strong>失败</strong></font>")
  htmlData=htmlData.replaceAll("缺少","<font color=red><strong>缺少</strong></font>")
  htmlData=htmlData.replaceAll("未完成","<font color=red><strong>未完成</strong></font>")
  htmlData=htmlData.replaceAll("跳过","<font color=blue><strong>跳过</strong></font>")
  // 将链接改为打开新窗口打开
  htmlData=htmlData.replaceAll("<a href=","<a target=\"_blank\" href=")
  return htmlData
}
